package com.xjtu.mybatisplus.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xjtu.mybatisplus.model.domain.Admin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lxp
 * @since 2021-06-17
 */
public interface AdminMapper extends BaseMapper<Admin> {

    @Select("select * from admin where id = #{id}")
    Admin selectByMyId(@Param("id") int i);

    Page<Admin> listPage(@Param("page") Page<Admin> page);
    List<Admin> selectWithBooks();
}
